@model OrchardCore.Lucene.Settings.ContentIndexSettingsViewModel

<fieldset class="form-group">
    <div class="custom-control custom-checkbox">
        <input type="checkbox" class="custom-control-input" asp-for="ContentIndexSettings.Included" data-toggle="collapse" data-target="#index-settings" checked="@Model.ContentIndexSettings.Included" />
        <label class="custom-control-label" asp-for="ContentIndexSettings.Included">@T["Include this element index"]</label>
        <span class="hint">@T["— {0}", "Check to include the value of this element in the index."]</span>
    </div>
    <div id="index-settings" class="collapse">

        <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" asp-for="ContentIndexSettings.Stored" checked="@Model.ContentIndexSettings.Stored" />
            <label class="custom-control-label" asp-for="ContentIndexSettings.Stored">@T["Stored"]</label>
            <span class="hint">@T["— {0}", "Check to be able to retrieve the value from the index."]</span>
        </div>

        <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" asp-for="ContentIndexSettings.Analyzed" checked="@Model.ContentIndexSettings.Analyzed" />
            <label class="custom-control-label" asp-for="ContentIndexSettings.Analyzed">@T["Analyzed"]</label>
            <span class="hint">@T["— {0}", "Check to analyze the value as readable text."]</span>
        </div>

        <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" asp-for="ContentIndexSettings.Sanitized" checked="@Model.ContentIndexSettings.Sanitized" />
            <label class="custom-control-label" asp-for="ContentIndexSettings.Sanitized">@T["Sanitized"]</label>
            <span class="hint">@T["— {0}", "Check to remove any extraneous characters from the text (e.g., HTML)."]</span>
        </div>

        <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" asp-for="ContentIndexSettings.Tokenized" data-toggle="collapse" data-target="#index-template" checked="@Model.ContentIndexSettings.Tokenized" />
            <label class="custom-control-label" asp-for="ContentIndexSettings.Tokenized">@T["Tokenized"]</label>
            <span class="hint">@T["— {0}", "Check to be able alter the indexed value using tokens."]</span>
        </div>
    </div>
</fieldset>
<fieldset class="form-group collapse" id="index-template">
    <input asp-for="ContentIndexSettings.Template" type="text" class="form-control" />
    <span class="hint">@T["Use tokens to customize the value. Use the <code>content</code> helper to reference the current element."]</span>
</fieldset>
